package routers

import (
	"crawl_movie/controllers"
	"github.com/astaxie/beego"
)

func init() {
    beego.Router("/", &controllers.MainController{})
	beego.Router("movie/list", &controllers.CrawlMovieController{}, "GET:List")
	beego.Router("movie/info", &controllers.CrawlMovieController{}, "GET:Info")
    beego.Router("movie/country_list", &controllers.CrawlMovieController{}, "POST:CountryList")
	beego.Router("movie/type_list", &controllers.CrawlMovieController{}, "POST:TypeList")
	beego.Router("movie/get_thread_start", &controllers.CrawlMovieController{}, "GET:GetThreadStart")
	beego.Router("movie/thread_start", &controllers.CrawlMovieController{}, "GET:ThreadStart")
}
